Print File Objects
A print file object represents the file that QuickDraw GX creates when your application prints a document. If the document is printed to a printer, the print file contains the spooled input to the printer driver. If the document is printed as a portable digital document, the print file's contents are kept in an application-independent form along with data, such as font information, that allows the document to be viewed without the application that created it.You can use print file objects to
Print file objects have four accessible properties, as shown in Figure 4-2. Note, that because a print file object is a private data structure, the order of the properties as shown in Figure 4-2 is completely arbitrary. Properties in italics indicate references to other objects.
- open, save, and close print files
- retrieve the contents of a print file or the formats associated with it
- count the pages in a print file, and insert, replace, and delete pages
- retrieve the job object stored with the print file
Figure 4-2 The print file object
The properties of a print file object are:
- Page count. This property contains the number of pages in the print file.
- Format list. This property contains a list of references to format objects, one reference for each page in the file. The first reference is the default format for the print job.
- Shape list. This property contains a list of references to shape objects, one reference for each page in the file. Each page is stored as a picture shape in the file, whether the file was created page-by-page or shape-by-shape for each page. Thus, the first reference in the list is the picture shape for the first page, the second reference is the shape for the second page, and so on.
- Job. This property is a reference to the job object associated with the file when it is open. The properties of this job object match those of the job object used to create the print file.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help